package com.lx.demo2;

public class Main {
    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();
        // userService.add();

        //不改变原有业务代码，对其进行打印日志输出，需要使用代理来完成
        UserServiceImplProxy userServiceImplProxy = new UserServiceImplProxy();
        userServiceImplProxy.setUserService(userService);
        userServiceImplProxy.add();
    }
}
